<form method="post" name="frm_SelRail" onSubmit="return false;" action="{$apm.baseurl}search/{$form_act}/eki/">
		<p class="searchAttTxt01">※3ヵ所まで選択できます。</p>

		<ul id="tab">
		{* 都道府県毎にループ *}
		{foreach from=$Mapping key=prefCd item=pref name="prefLoop"}
			{if $smarty.foreach.prefLoop.iteration == 1}
				<li class="select" style="cursor: pointer">
			{else}
				<li style="cursor: pointer">
			{/if}
				<span>{$pref.PrefName}</span>の沿線
			</li>
		{/foreach}
		</ul>
		
		{* 都道府県毎にループ *}
		{foreach from=$Mapping key=prefCd item=pref name="prefLoop"}
			{if $smarty.foreach.prefLoop.iteration == 1}
			<div class="content_wrap">
			{else}
			<div class="content_wrap disnon">
			{/if}
			{* アンカー *}
			{foreach from=$pref.EnsenKbnList item=ensenKbn}
				<h3>{$ensenKbn.EnsenKbnName}</h3>
				{* 沿線毎にループ *}
				{foreach from=$ensenKbn.RailList item=rail name=railLoop}
						{if $smarty.foreach.railLoop.iteration % 3 == 1}
							{if $smarty.foreach.railLoop.iteration + 2 >= $smarty.foreach.railLoop.total}
								<ul class="checkBoxList last">
							{else}
								<ul class="checkBoxList">
							{/if}
						{/if}

						{if $rail.TENPO_COUNT == 0}
							{assign var="disabled" value=" disabled"}
						{else}
							{assign var="disabled" value=""}
						{/if}
							<li>
								<label><input type="checkbox" id="selectRail{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" name="RailCd[]" value="{$rail.T57_ENSEN_SHIKUCHOUSON_CD}" {$rail.checked}/>{$rail.ENSEN_NAME}</label>
							</li>
						{if $smarty.foreach.railLoop.iteration % 3 == 0 || $smarty.foreach.railLoop.last}
								</ul>
						{/if}
				{/foreach}
			{/foreach}
		</div>
		<!-- /prefBlock -->
		{/foreach}

		<!-- searchBtnBlock02_easy -->
		<div id="searchBtnBlock02_easy">
			<div class="btnBlock">
				<p>
					<a href="javascript:SelEnsen(3);">
						<img src="/images/search/common/btn_next_easy05.gif" alt="駅を選択" width="264" height="59" class="rollImg" />
					</a>
				</p>
			</div>
		</div>
		<!-- /searchBtnBlock02_easy -->

	<div id="hiddenval">
	{$hiddenTag}
	</div>
</form>

{* 県のタブ切り替え *}
{literal}
<script type="text/javascript">
<!--
$(function() {
	$("#tab li").click(function() {
		var num = $("#tab li").index(this);
		$(".content_wrap").addClass('disnon');
		$(".content_wrap").eq(num).removeClass('disnon');
		$("#tab li").removeClass('select');
		$(this).addClass('select')
	});
});
-->
</script>
{/literal}